﻿
namespace AnimationPackerEngine.Exporters
{
    /// <summary>
    /// An object able to save a sprite atlas image index.
    /// </summary>
    public interface IAtlasIndexExporter
    {
        /// <summary>
        /// Gets the extension for the index file type.
        /// </summary>
        string IndexExtension { get; }

        /// <summary>
        /// Saves the index to a file.
        /// </summary>
        /// <param name="filename">The file to which the index should be saved.</param>
        /// <param name="animations">The data to save to the file.</param>
        void Save(string filename, ProcessingAnimationCollection animations);
    }
}
